<template>
  <div class="form-container">
    <h2>Enter your information</h2>
    <label for="name">Name:</label>
    <input type="text" id="name" v-model="formData.name" />

    <label for="age">Age:</label>
    <input type="number" id="age" v-model="formData.age"/>

    <p>Your name is {{ formData.name }} and you are {{ formData.age }} years old.</p>
  </div>
</template>

<script setup lang="ts">
import { reactive } from 'vue';

const formData = reactive({
    name: '',
    age: ''
})

</script>


<style scoped>
.form-container {
  margin: 20px;
}

input {
  display: block;
  margin: 10px 0;
  padding: 5px;
}

label {
  font-weight: bold;
}

p {
  margin-top: 20px;
  font-size: 1.2em;
}
</style>
